/**
 * erp生产订单与对应表 api 封装
 *
 * @Author:    akita
 * @Date:      2025-04-17 14:03:35
 * @Copyright  无
 */
/*
 * @Description:
 * @Author: zhuoda
 * @Date: 2021-11-05
 * @LastEditTime: 2022-06-23
 * @LastEditors: zhuoda
 */
import { postRequest, getRequest } from '@/lib/smart-request';

export const examromApi = {
  queryPage: (param) => {
    return postRequest('/examrom/queryPage', param);
  },

  add: (param) => {
    return postRequest('/examrom/add', param);
  },

  update: (param) => {
    return postRequest('/examrom/update', param);
  },

  delete: (id) => {
    return getRequest(`/examrom/delete/${id}`);
  },

  batchDelete: (idList) => {
    return postRequest('/examrom/batchDelete', idList);
  },
  info: (param) => {
    return getRequest('/examrom/info/' + param);
  },

  openAll: (param) => {
    return getRequest('/examrom/openAll/' + param);
  },

  myList: (param) => {
    return postRequest(`/examrom/myList`, param);
  },

  myInfo: (param) => {
    return getRequest('/examrom/myInfo/' + param);
  },
};

export const examromaApi = {
  queryPage: (param) => {
    return postRequest('/examroma/queryPage', param);
  },

  add: (param) => {
    return postRequest('/examroma/add', param);
  },

  update: (param) => {
    return postRequest('/examroma/update', param);
  },

  delete: (id) => {
    return getRequest(`/examroma/delete/${id}`);
  },
  batchDelete: (idList) => {
    return postRequest('/examroma/batchDelete', idList);
  },
  myInfo: (param) => {
    return getRequest('/examroma/myInfo/' + param);
  },
  openExam: (param) => {
    return getRequest('/examroma/openExam/' + param);
  },
  submitExam: (param) => {
    return postRequest('/examroma/submitExam', param);
  },
  submitFreeExam: (param) => {
    return getRequest('/examroma/submitFreeExam', param);
  },
};

export const examrombApi = {
  queryPage: (param) => {
    return postRequest('/examromb/queryPage', param);
  },
  add: (param) => {
    return postRequest('/examromb/add', param);
  },

  update: (param) => {
    return postRequest('/examromb/update', param);
  },

  delete: (id) => {
    return getRequest(`/examromb/delete/${id}`);
  },

  batchDelete: (idList) => {
    return postRequest('/examromb/batchDelete', idList);
  },
};
